
package com.jf.cloud.live.model;

import com.jf.cloud.common.model.BaseModel;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

/**
 * 直播商品
 *
 * @author zz
 * @date 2022-08-17 17:09:06
 */
public class LiveProdStore extends BaseModel implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 直播商品库id
     */
    private Long liveProdStoreId;

    /**
     * 商家id
     */
    private Long shopId;

    /**
     * 商品id
     */
    private Long prodId;

    /**
     * 商品封面，原图
     */
    private String coverPic;

    /**
     * 商品封面，存储的是mediaID（mediaID获取后，三天内有效）
     */
    private String converImgUrl;

    /**
     * 商品名称，提交给第三方接口的名称
     */
    private String name;

    /**
     * 价格类型，1：一口价（只需要传入price，price2不传） 2：价格区间（price字段为左边界，price2字段为右边界，price和price2必传） 3：显示折扣价（price字段为原价，price2字段为现价， price和price2必传）
     */
    private Integer priceType;

    /**
     * 商品价格(元)
     */
    private Double price;

    /**
     * 商品价格(元)
     */
    private Double price2;

    /**
     * 商品详情页的小程序路径，路径参数存在 url 的，该参数的值需要进行 encode 处理再填入
     */
    private String url;

    /**
     * 商品类型(0普通商品 1拼团 2秒杀 3积分)
     */
    private Integer prodType;

    /**
     * 活动id(对应prod_type)
     */
    private Long activityId;

    /**
     *  -1:删除时间  0:商家创建商品 1:商家提交审核 2:审核通过 3:审核不通过 4:微信直播服务平台，违规下架 5:平台撤销直播商品
     */
    private Integer status;

    /**
     * 商家提交审核时间
     */
    private Date verifyTime;

    /**
     * 商品审核通过时间
     */
    private Date successTime;

    /**
     * 商品审核未通过时间
     */
    private Date failTime;

    /**
     * 违规下架时间
     */
    private Date shelfTime;

    /**
     * 平台撤销时间
     */
    private Date cancelTime;

    /**
     * 商家删除直播商品时间
     */
    private Date deleteTime;

    /**
     * 版本，乐观锁
     */
    private Integer version;

    /**
     * 微信提交审核后的商品ID
     */
    private Integer goodsId;

    /**
     * 审核单Id
     */
    private Long auditId;

    /**
     * 商品本来的商品类型 商品类型(0普通商品 1拼团 2秒杀 3积分)
     */
    private Integer oriProdType;

    /**
     * 商品图片
     */
    @Schema(description = "商品图片" )
    private String pic;

    /**
     * 商品原名称
     */
    @Schema(description = "商品原名称" )
    private String prodName;

    public Long getLiveProdStoreId() {
        return liveProdStoreId;
    }

    public void setLiveProdStoreId(Long liveProdStoreId) {
        this.liveProdStoreId = liveProdStoreId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getProdId() {
        return prodId;
    }

    public void setProdId(Long prodId) {
        this.prodId = prodId;
    }

    public String getCoverPic() {
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String getConverImgUrl() {
        return converImgUrl;
    }

    public void setConverImgUrl(String converImgUrl) {
        this.converImgUrl = converImgUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPriceType() {
        return priceType;
    }

    public void setPriceType(Integer priceType) {
        this.priceType = priceType;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice2() {
        return price2;
    }

    public void setPrice2(Double price2) {
        this.price2 = price2;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getProdType() {
        return prodType;
    }

    public void setProdType(Integer prodType) {
        this.prodType = prodType;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(Date verifyTime) {
        this.verifyTime = verifyTime;
    }

    public Date getSuccessTime() {
        return successTime;
    }

    public void setSuccessTime(Date successTime) {
        this.successTime = successTime;
    }

    public Date getFailTime() {
        return failTime;
    }

    public void setFailTime(Date failTime) {
        this.failTime = failTime;
    }

    public Date getShelfTime() {
        return shelfTime;
    }

    public void setShelfTime(Date shelfTime) {
        this.shelfTime = shelfTime;
    }

    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getProdName() {
        return prodName;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Long getAuditId() {
        return auditId;
    }

    public void setAuditId(Long auditId) {
        this.auditId = auditId;
    }

    public Integer getOriProdType() {
        return oriProdType;
    }

    public void setOriProdType(Integer oriProdType) {
        this.oriProdType = oriProdType;
    }

    @Override
    public String toString() {
        return "LiveProdStore{" +
                "liveProdStoreId=" + liveProdStoreId +
                ",shopId=" + shopId +
                ",prodId=" + prodId +
                ",coverPic=" + coverPic +
                ",converImgUrl=" + converImgUrl +
                ",name=" + name +
                ",priceType=" + priceType +
                ",price=" + price +
                ",price2=" + price2 +
                ",url=" + url +
                ",prodType=" + prodType +
                ",activityId=" + activityId +
                ",status=" + status +
                ",createTime=" + createTime +
                ",updateTime=" + updateTime +
                ",verifyTime=" + verifyTime +
                ",successTime=" + successTime +
                ",failTime=" + failTime +
                ",shelfTime=" + shelfTime +
                ",cancelTime=" + cancelTime +
                ",deleteTime=" + deleteTime +
                ",version=" + version +
                ",goodsId=" + goodsId +
                ",auditId=" + auditId +
                '}';
    }
}
